package form.contactlist;

public class Contact {
	private String _nickName;
	private String _realName;
	private boolean _isOnline;
	public Contact(String _nickName,String _realName,boolean _isOnline){
		this._nickName=_nickName;
		this._realName=_realName;
		this._isOnline=_isOnline;
	}
	public void setNickName(String nickName) {
		this._nickName = nickName;
	}
	public String getNickName() {
		return _nickName;
	}
	public void setRealName(String realName) {
		this._realName = realName;
	}
	public String getRealName() {
		return _realName;
	}
	public void setOnline(boolean isOnline) {
		this._isOnline = isOnline;
	}
	public boolean isOnline() {
		return _isOnline;
	}
	public boolean equals(Object cont){
		try{
			return ((Contact)cont).getNickName().equals(this.getNickName());
		}catch(Exception e){
			return false;
		}
	}
}
